package com.fwmagic.rpc;

import com.fwmagic.rpc.provider.RpcServerProvider;
import com.fwmagic.rpc.service.UserServiceImpl;
import com.fwmagic.rpc.service.service.IUserService;

public class ServerApp {

    public static void main(String[] args) {
        //创建服务类
        IUserService userService = new UserServiceImpl();
        //创建发布服务类
        RpcServerProvider provider = new RpcServerProvider();
        //发布服务
        provider.publisher(userService, 9999);
    }
}
